﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MvcTest.Util
{
    public class StringUtil
    {
        public static String nullReturnEmpty(String str)
        {
            string ret;
            if (str == null)
            {
                return ret = "";
            }
            else
            {

                //ret = HttpUtility.HtmlEncode(str);

                //ret = ret.Replace("<", "&lt;");
                //ret = ret.Replace(">", "&gt;");
                //ret = ret.Replace("\"", "&quot;");
                //ret = ret.Replace("\"", "");
                ret = str.ToString();
                return ret;
            }
        }
    }
}